# coding: UTF-8
'''
Created on 2011/04/27

@author: yang_wanjun
'''
from django.db import models

class ViewableArticleManager(models.Manager):
    def get_query_set(self):
        return super(ViewableArticleManager, self).get_query_set().filter(is_published=True)

class ViewablePageManager(models.Manager):
    def get_query_set(self):
        return super(ViewablePageManager, self).get_query_set().filter(is_published=True)
